package cn.anecansaitin.whimsy.common.event;

import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.projectile.AbstractArrow;
import net.neoforged.neoforge.event.entity.living.LivingEvent;

public class ArrowHitLivingEntityEvent extends LivingEvent {
    private final AbstractArrow arrow;

    public ArrowHitLivingEntityEvent(LivingEntity enemy, AbstractArrow arrow) {
        super(enemy);
        this.arrow = arrow;
    }

    public AbstractArrow getArrow() {
        return arrow;
    }
}
